package work.mediway.mdm.controller;

import com.mediway.hos.base.model.BaseResponse;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import lombok.extern.slf4j.Slf4j;

/**
 * @author zhongyj <1126834403@qq.com><br/>
 * @date 2022/3/28
 */
@Slf4j
@RestController(value = "tController")
@RequestMapping("test")
public class TestController {

    @PostMapping
    public BaseResponse<String> test(@RequestBody String data) {
        log.info("消息接收测试: {}", data);
        return BaseResponse.success();
    }
}
